// index.js
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        pageSize: 10,
        pageNum: 1
    },
    mutations: {
        updatePageSize(state, pageSize) {
            state.pageSize = pageSize;
        },
        updatePageNum(state, pageNum) {
            state.pageNum = pageNum;
        }
    }
})
